<?php
header("Pragma: public");
header("Expires: 0"); // set expiration time
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Disposition: attachment; filename=".basename($archivo).";");
header("Content-Transfer-Encoding: binary");
$rutaBase = RUTADOCUMENTOS."/".$archivo;
header("Content-Length: ".filesize($rutaBase));
@readfile($rutaBase);
exit(0);
?>